import os
import pyautogui
from time import sleep

username = '20221917'
tuple(username)
userkey = '0812@suep'
tuple(userkey)

# 166, 205, 88


def easyconnect():
    try:
        print("6")
        # icopath = 'E:\\Code\\Python\\AutoLoginEasyconnect\\EasyConnect.png'
        icopath = 'E:\\Code\\Python\\AutoLoginEasyconnect\\02.png'
        print("8")
        x, y = pyautogui.locateOnScreen(
            image=icopath, confidence=0.7, grayscale=1)
        print("7")
        print(x)
        print(y)
    except:
        print("Filed!")


easyconnect()
